import request from '../utils/request'
export default {

    //添加小节
    addVideo(video) {
        return request({
            url: '/eduservice/edu_video',
            method: 'post',
            data: video
          })
    },

    //删除小节
    deleteVideo(id) {
        return request({
            url: '/eduservice/edu_video/'+id,
            method: 'delete'
          })
    },
  updateVideo(video) {
    return request({
      url: '/eduservice/edu_video',
      method: 'put',
      date: video
    })
  },
  findVideo(id){
      return request({
        url:'/eduservice/edu_video'+id,
        method:'get',

      })
  }
}
